home *** CD-ROM | disk | FTP | other *** search
- Path: news.infi.net!usenet
- From: Steve Rountree <srndtree@infi.net>
- Newsgroups: comp.lang.c
- Subject: Re: Compare function
- Date: Sat, 06 Apr 1996 11:18:07 -0800
- Organization: InfiNet
- Message-ID: <3166C36F.7548@infi.net>
- References: <4k52cf$6ok@freenet-news.carleton.ca>
- NNTP-Posting-Host: h-agate.dc.infi.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Jerry Boyd wrote:
- >
- >
- > How would I write a compare function (compare_strings, for
- > instance) that uses character pointers. I need something
- > that would take a string and compare it to a list, or dictionary,
- > of other words.
- >
- >
- > --
- >
-
-
- How does it need to differ from the available string comparison
- routines? (ie. strcmp, strcmpi(DOS), strstr, et al.). If you are just
- looking for a match then you could use these existing functions within a
- loop that does a comparison on individual words as they are read from a
- file or table.
-
- If there is more to your problem then what are your additional
- constraints.
-
- Steve Rountree
-